package com.xxx.kjds.service;


import com.xxx.kjds.entity.User;
import com.xxx.kjds.entity.UserExample;

import java.util.List;

public interface UserService {
    
    public long countByExample(UserExample example);
    
    public int deleteByExample(UserExample example);
    
    public int deleteByPrimaryKey(Integer id);
    
    public int insert(User record);
    
    public int insertSelective(User record);
    
    public List<User> selectByExample(UserExample example);
    
    public User selectByPrimaryKey(Integer id);
    
    public int updateByExampleSelective(User record, UserExample example);
    
    public int updateByExample(User record, UserExample example);
    
    public int updateByPrimaryKeySelective(User record);
    
    public int updateByPrimaryKey(User record);

    public User selectByName(String name);

    public List<User> selectAll();

    public List<User> selectAll(int pageNum, int pageSize);

    public User checkLogin(String name,String password);

    public User checkName(String name);

    public List<User> selectByType(String type);
}
